package work.xiaohong.business.fallback;

import org.springframework.stereotype.Component;
import work.xiaohong.business.feign.StorageFeign;
import work.xiaohong.business.to.StorageTbl;
import work.xiaohong.model.Result;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/9/22 0022 14:58
 * @description storage远程调用降级回调
 */
@Component
public class StorageFallback implements StorageFeign {
    @Override
    public Result updateById(StorageTbl storageTbl) {
        System.out.println("StorageFeign-updateById方法远程调用失败");
        return null;
    }

    @Override
    public Result<StorageTbl> findById(Integer id) {
        System.out.println("StorageFeign-findById方法远程调用失败");
        return null;
    }
}
